﻿using System;

namespace SimpleFactory
{
    class Program
    {
        static void Main(string[] args)
        {
            Operation oper = OperationFactory.createOperate("+");
            oper.NumberA = 1;
            oper.NumberB = 2;
            Console.WriteLine("{0}+{1}={2}", oper.NumberA, oper.NumberB, oper.GetResult());
        }
    }
}
